package com.jason.practice.controller;


import com.jason.practice.response.Response;
import com.jason.practice.service.GoodsStockInfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jiayb_9169@126.com
 * @since 2022-09-29
 */
@RestController
@RequestMapping("/goodsStockInfo")
public class GoodsStockInfoController {

    @Autowired
    private GoodsStockInfoService goodsStockInfoService;
    @ApiOperation(value="根据商品id获取库存信息")
    @PostMapping("/handleGoodsStock")
    public Response handleGoodsStock(String skusId) {
        return goodsStockInfoService.handleGoodsStock(skusId);
    }
}

